module.exports = {
    BUBBLE_CONFIG: [{
        scale: {
            x: 1,
            y: 1
        },
        position: {
            x: 148,
            y: 80
        },
        spfName: "chat_bubbleL"
    }, {
        scale: {
            x: 1,
            y: -1
        },
        position: {
            x: -153.7,
            y: -65.2
        },
        spfName: "chat_bubbleR"
    }, {
        scale: {
            x: 1,
            y: -1
        },
        position: {
            x: -161,
            y: -62
        },
        spfName: "chat_bubbleR"
    }, {
        scale: {
            x: 1,
            y: -1
        },
        position: {
            x: 168,
            y: -61
        },
        spfName: "chat_bubbleL"
    }],
    initChatBubble: function (e, t) {
        e.setPosition(this.BUBBLE_CONFIG[t].position.x, this.BUBBLE_CONFIG[t].position.y),
            e.setScale(this.BUBBLE_CONFIG[t].scale.x, this.BUBBLE_CONFIG[t].scale.y), Global.utils.searchNode(e, "chatInfo").setScale(this.BUBBLE_CONFIG[t].scale.x, this.BUBBLE_CONFIG[t].scale.y),
            Global.spriteAtlas.setSpriteFrame(e.getComponent(cc.Sprite), "Texture/chat_emotion", this.BUBBLE_CONFIG[t].spfName);
    }
};
